package xyz.jcat.dys.aweme.service.impl;

import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import org.springframework.stereotype.Service;

import xyz.jcat.mybatis.ServiceImpl;
import xyz.jcat.dys.aweme.domain.po.AwemePo;
import xyz.jcat.dys.aweme.domain.dao.IAwemeDao;
import xyz.jcat.dys.aweme.service.IAwemeService;
/**
 *
 * @author yueyue
 * auto on 2022-03-17 22:39:43
 */
@Service
public class AwemeService extends ServiceImpl<IAwemeDao, AwemePo> implements IAwemeService {


    @Override
    public boolean updateCollects(Long id, Long collects) {
        return SqlHelper.retBool(dao.updateCollects(id, collects));
    }

    @Override
    public boolean updateComments(Long id, Long comments) {
        return SqlHelper.retBool(dao.updateComments(id, comments));
    }

    @Override
    public boolean updateDiggs(Long id, Long diggs) {
        return SqlHelper.retBool(dao.updateDiggs(id, diggs));
    }

    @Override
    public boolean updateShares(Long id, Long shares) {
        return SqlHelper.retBool(dao.updateShares(id, shares));
    }
}
